Repository navigation
Let the AppKit window count settle before judging release - #29
Merged
Merged
Conversation
The counts asked for in the last run answered the question: "to baseline 0 (listed 1, of those visible 0)". The window was closed, not leaked, and AppKit simply had not dropped it from the application's list yet. The same line carried the proof, because the fixture's own bootstrap window is created and closed before the baseline is taken and the baseline was 0 -- closed windows do leave the list, just not within the single run-loop turn the observer was giving them. count() now lets the figure settle, bounded to fifty ten-millisecond turns and stopping as soon as it holds steady three times. A genuinely leaked window settles too and is still reported, so this waits for AppKit's bookkeeping without weakening what the assertion means. detail() reports the unsettled list, since its job is to say what was actually there. The in-process input probe passes: text, toggle and click all arrive with the entry reading "Matrix", 41 checks, which is real keyboard input reaching each control and becoming a provider event on macOS. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The counts asked for in the last run answered the question: "to baseline 0 (listed 1, of those visible 0)". The window was closed, not leaked, and AppKit simply had not dropped it from the application's list yet. The same line carried the proof, because the fixture's own bootstrap window is created and closed before the baseline is taken and the baseline was 0 -- closed windows do leave the list, just not within the single run-loop turn the observer was giving them.
count() now lets the figure settle, bounded to fifty ten-millisecond turns and stopping as soon as it holds steady three times. A genuinely leaked window settles too and is still reported, so this waits for AppKit's bookkeeping without weakening what the assertion means. detail() reports the unsettled list, since its job is to say what was actually there.
The in-process input probe passes: text, toggle and click all arrive with the entry reading "Matrix", 41 checks, which is real keyboard input reaching each control and becoming a provider event on macOS.